class HomeController < ApplicationController

  def index
    @latest_news = News.limit(5)
    @latest_publications = Publication.limit(5)
    @latest_articles = Article.limit(5)

    @news_count, @publications_count, @articles_count = News.count, Publication.count, Article.count
  end
end
